package com.hz.blogservice.service;

import com.hz.blogservice.model.entity.BlogEntity;

import java.util.List;

public interface BlogService {
    public  int addBlog(String title,String content ,Integer userId,boolean isAnonymous);

    BlogEntity viewBlog(Integer id);

    int delBlog(Integer id);

    int editBlog(Integer id,String title,String content);

    List<BlogEntity> allBlogs();

    List<BlogEntity> myBlogs(Integer userId);
}
